find the remainder and quotient